package swimv2.session;

import java.util.ArrayList;


public class SearchParser {
	public static ArrayList<Parameter> parse(String text){
		
		String[] tokens = text.split(" ");
		ArrayList<Parameter> lista = new ArrayList<Parameter>();
		int i = 0;
		for(String s : tokens)
		{
			if(i==0)
			{
				lista.add(new Parameter("Name", s));
			}
			else if(i==1)
			{
				lista.add(new Parameter("Surname", s));
			}
			lista.add(new Parameter("Ability",s));
		}
		return lista;
	}
}

